<?php /* Smarty version Smarty-3.0.5, created on 2015-11-21 14:49:15
         compiled from "D:\WWW\phpcms5\tpl/xiaomi/productbuy.html" */ ?>
<?php /*%%SmartyHeaderCode:32348565013ebab3e80-23900112%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd14467777d056fc8625ea095f6e058e233e31bf7' => 
    array (
      0 => 'D:\\WWW\\phpcms5\\tpl/xiaomi/productbuy.html',
      1 => 1357457188,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '32348565013ebab3e80-23900112',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_smarty_tpl->getVariable('page_charset')->value;?>
" />
<title><?php echo $_smarty_tpl->getVariable('page_title')->value;?>
-<?php echo $_smarty_tpl->getVariable('copyright_header')->value;?>
</title>
<meta name="description" content="<?php echo $_smarty_tpl->getVariable('page_description')->value;?>
" />
<meta name="keywords" content="<?php echo $_smarty_tpl->getVariable('page_keyword')->value;?>
" />
<meta name="author" content="<?php echo $_smarty_tpl->getVariable('copyright_author')->value;?>
" />
<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('skinpath')->value;?>
js/language.js"></script>
<link href="<?php echo $_smarty_tpl->getVariable('skinpath')->value;?>
css/mergesite.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $_smarty_tpl->getVariable('skinpath')->value;?>
css/global.css" rel="stylesheet" type="text/css"  />
<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('skinpath')->value;?>
js/mergesite.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('skinpath')->value;?>
js/command.js"></script>
<link rel="shortcut icon" href="/favicon.ico" />
</head>
<body>
<script language="javascript">
function CheckJob(){
if (document.myform.username.value.length == 0) 
{
alert('姓名 不能为空');
document.myform.username.focus();
return false;
}
if (document.myform.email.value.length == 0)
{
alert('E–mail 不能为空');
document.myform.email.focus();
return false;
}
if (document.myform.telno.value.length == 0)
{
alert('联系电话不能为空');
document.myform.telno.focus();
return false;
}
}
</script>
<div id="header" class="cfl">
<div class="header_wrap">
<h1 class="header_logo">
<a href="<?php echo $_smarty_tpl->getVariable('urlpath')->value;?>
"><img src="<?php echo $_smarty_tpl->getVariable('urlpath')->value;?>
<?php echo $_smarty_tpl->getVariable('config')->value['logoimg'];?>
" width="170px" height="70px" ></a>
</h1>
<div class="header_menu">
<!-- star pub header# //-->
<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tplpath')->value)."block_head.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<!-- end header# //-->
</div>
</div>
</div>

<div class="main_content"> 
  <div class="accessories">
	<div class="aside">
	<div class="nav">
			<h3>产品分类</h3>
			<ul>
  <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tplpath')->value)."block_productcat.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
			</ul>
		</div>

	</div>
	<!-- aside -->
<div class="main" style="float:right;width:758px">
<div class="promo">
<div class="mainnatming"><H5><a href="<?php echo $_smarty_tpl->getVariable('url_index')->value;?>
">首 页</a>>>在线订购</H5></div>
<div class="contentmain">
<div style="width:auto;height:auto">

 <div class="webcontent">
	   <div class="showtext editor">
<form method='POST' onSubmit='return CheckJob();' name='myform' action='<?php echo $_smarty_tpl->getVariable('url_productbuy')->value;?>
' >
<input type="hidden" name="action" value="saveadd" />
<table class='job_table' width="95%" border="0" align="center" cellpadding="5" cellspacing="3" style="margin-top:20px">
<?php if ($_smarty_tpl->getVariable('proid')->value==''){?>
<tr><td class='text'>选择要订购的产品</td>
<td class='input'>
<select name='proid' id='proid'>
<?php  $_smarty_tpl->tpl_vars['productlist'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('products')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['productlist']->key => $_smarty_tpl->tpl_vars['productlist']->value){
?>	
<option value='<?php echo $_smarty_tpl->tpl_vars['productlist']->value['productid'];?>
' ><?php echo $_smarty_tpl->tpl_vars['productlist']->value['productname'];?>
</option>
<?php }} ?>
</select>
<span class='info'>*</span></td></tr>
<?php }else{ ?>
<input type="hidden" name="proid" value="<?php echo $_smarty_tpl->getVariable('proid')->value;?>
" />
<?php }?>
<tr><td class='text'>姓名</td>
<td class='input'><input name='username' type='text' class='input-text' value="<?php echo $_smarty_tpl->getVariable('username')->value;?>
" size='40'><span class='info'>*</span></td></tr>
<tr><td class='text'>性别</td>
<td class='input'>
<input name='sex' type='radio' id='para12_1' value='1' checked='checked' />
<label for='para12_1'>男士</label> 
<input name='sex' type='radio' id='para12_2' value='0'  />
<label for='para12_2'>女士</label>  <span class='info'></span>
</td></tr>
<tr><td class='text'>公司名字</td>
<td class='input'><input name='company' type='text' class='input-text' size='40'><span class='info'></span></td></tr>
<tr><td class='text'>公司地址</td>
<td class='input'><input name='address' type='text' class='input-text' size='40'><span class='info'>*</span></td></tr>
<tr><td class='text'>邮政编码</td>
<td class='input'><input name='zipcode' type='text' class='input-text' size='40'><span class='info'></span></td></tr>
<tr><td class='text'>联系电话</td>
<td class='input'><input name='telephone' type='text' class='input-text' size='40'><span class='info'></span></td></tr>
<tr><td class='text'>传真：</td>
<td class='input'><input name='fax' type='text' class='input-text' size='40'><span class='info'></span></td></tr>
<tr><td class='text'>手机号</td>
<td class='input'><input name='mobile' type='text' class='input-text' size='40'><span class='info'>*</span></td></tr>
<tr><td class='text'>E–mail</td>
<td class='input'><input name='email' type='text' class='input-text' size='40'><span class='info'>*</span></td></tr>
<tr><td class='text'>订购详细说明</td>
<td class='input'><textarea name='remark' class='textarea-text' cols='60' rows='5'></textarea><span class='info'>*</span></td></tr>
<tr><td class='text'></td>
<td class='submint'><input type='submit' name='Submit' value='立即订购' class='submit' />&nbsp;&nbsp;<input type='reset' name='Submit' value='重新填写' class='reset' /></td>
</tr></table>
</form>
</div>
</div>

 </div>
</div>
</div>
</div>
</div>


</div>
<div style="width:100%;height:10px;clear:both;"></div>


<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tplpath')->value)."block_footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>

<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tplpath')->value)."block_onlinechat.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
</body>
</html>



























































